import request from "@/utils/request";

// 列表查看分页
export function getAddressList(data) {
  return request({
    url: "/keyue/admin/address/list_by_page",
    method: "post",
    data,
  });
}

// 新增
export function addAddress(data) {
  return request({
    url: "/keyue/admin/address/add",
    method: "post",
    data,
  });
}

// 编辑
export function editAddress(data) {
  return request({
    url: "/keyue/admin/address/edit",
    method: "post",
    data,
  });
}

// 删除
export function delAddress(data) {
  return request({
    url: "/keyue/admin/address/delete_by_id",
    method: "post",
    data,
  });
}
